<extend name="Public:common" />
<!--/sidebar-->
<block name="content">
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"> <i class="icon-font"></i>
                <a href="__URL__">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">计划管理</span>
            </div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="" method="get">
                    <table class="search-tab">
                        <tr>
                            <th width="120">选择分类:</th>
                            <td>
                                <select name="search" id="">
                                    <option value="">全部</option>
                                    <foreach name="Tarr" item="vo">
                                    <option value="{$vo.tid}">{$vo.tname}</option>
                                    </foreach>
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td>
                                <input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
                            <td>
                                <input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="__URL__/Pinsert"> <i class="icon-font"></i>
                            新增
                        </a>
<!--                         <a id="batchDel" href="javascript:void(0)">
                            <i class="icon-font"></i>
                            批量删除
                        </a> -->
                        <a id="updateOrd" href="javascript:void(0)">
                            <i class="icon-font"></i>
                            更新排序
                        </a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%">
                                <input class="allChoose" name="" type="checkbox"></th>
                            <th>ID</th>
                            <th>计划名称</th>
                            <th>预付金额</th>
                            <th>最高保障</th>
                            <th>最高均摊</th>
                            <th>创建时间</th>
                            <th>更新时间</th>
                            <th>当前状态</th>
                            <!-- <th>计划条款</th> -->
                            <th>加入人数</th>
                            <th>操作</th>
                        </tr>
                        <foreach name="Parr" item="vo">
                        <tr>
                            <td class="tc">
                                <input name="id[]" value="58" type="checkbox"></td>
                            <!--                             <td>
                            <input name="ids[]" value="58" type="hidden">
                            <input class="common-input sort-input" name="ord[]" value="0" type="text"></td>
                        -->
                        <td>{$vo.jid}</td>
                        <td title="黑色经典">{$vo.jtitle}</td>
                        <td>{$vo.yfjin}</td>
                        <td>{$vo.maxbao}</td>
                        <td>{$vo.maxjun}</td>
                        <td>{$vo.create_time}</td>
                        <td>{$vo.update_time}</td>
                        <if condition="($vo.status eq 0)"> <td>准备</td>
                        <elseif condition="$vo.status eq 1"/><td>开放</td>
                        <else /> <td>结束</td>
                        </if>
                        <td>{$vo.num}</td>
                        <td>
                            <a class="link-update" href="{:U('Admin/Index/YuLan/id/'.$vo['jid'])}">预览</a>
                            <a class="link-update" href="{:U('Admin/Index/xiu/i/'.$vo['jid'])}">修改</a>
                            <a class="link-del" href="javascript:del({$vo['jid']})">删除</a>
                        </td>
                    </tr>
                    </foreach>
                </table>
                <div class="list-page">{$page}</div>
            </div>
        </form>
    </div>
</div>

<!--/main-->
<script type="text/javascript">
function del(id) {
    if(confirm("执行后将无法恢复，确定继续吗？温馨提示"))
            {
        $.post('__URL__/delete', {'sid':id}, function(data){
           alert(data);
           location.reload([true])  
        });
        exit;
        }
    }
</script>
</block>